package com.jiufen.Service.impl;

import com.jiufen.Mapper.EmpLogMapper;
import com.jiufen.Pojo.EmpLog;
import com.jiufen.Service.EmpLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class EmpLogServiceImpl implements EmpLogService {


    @Autowired
    private EmpLogMapper empLogMapper;
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public Integer insertEmpLog(EmpLog empLog) {
        Integer i = empLogMapper.insertEmpLog(empLog);
        return i;
    }

    @Override
    public List<EmpLog> selectEmpLogAll() {
        return empLogMapper.selectEmpLogAll();
    }
}
